package com.ms.game.gameActivity.db;

import java.util.ArrayList;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import com.ms.game.gameActivity.container.GameActivityTimeContainer;
import com.xpec.c4.db.model.basic.BasicGameModel;


@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = GameActivitySettingModel.TABLENAME)
public class GameActivitySettingModel extends BasicGameModel{

	public final static String TABLENAME = "game_activity_settings";
	
	private static final long serialVersionUID = 6263674362724421694L;
	
	/**
	 * 遊戲名稱
	 */
	private String game;
	
	/**
	 * 館別
	 */
	private String hallType;
	
	/**
	 * 最後設定時間
	 */
	private long modifyTime;
	
	/**
	 * 一般設定
	 * ex  800 to 0900 => 每日 08:00:00 - 每日 09:00:00
	 */
	private ArrayList<GameActivityTimeContainer> normalTimeSetting;

	/**
	 * 額外設定
	 * ex from : 1499731200 , to 1499734800 => 2017-07-11 08:00:00 to 2017-07-11 09:00:00 
	 */
	private ArrayList<GameActivityTimeContainer> extraTimeSetting;


	public String getGame() {
		return game;
	}


	public void setGame(String game) {
		this.game = game;
	}


	public long getModifyTime() {
		return modifyTime;
	}


	public void setModifyTime(long modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Type(type = "com.xpec.c4.db.usertype.game.ActivityTimeListUserType")
	public ArrayList<GameActivityTimeContainer> getNormalTimeSetting() {
		return normalTimeSetting;
	}

	public void setNormalTimeSetting(ArrayList<GameActivityTimeContainer> normalTimeSetting) {
		this.normalTimeSetting = normalTimeSetting;
	}

	@Type(type = "com.xpec.c4.db.usertype.game.ActivityTimeListUserType")
	public ArrayList<GameActivityTimeContainer> getExtraTimeSetting() {
		return extraTimeSetting;
	}

	public void setExtraTimeSetting(ArrayList<GameActivityTimeContainer> extraTimeSetting) {
		this.extraTimeSetting = extraTimeSetting;
	}


	public String getHallType() {
		return hallType;
	}


	public void setHallType(String hallType) {
		this.hallType = hallType;
	}

}
